﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mail;

namespace PSUA_RideSharing.Pages.Contact
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Submit_Click(object sender, EventArgs e)
        {
            //txtEmailAddress.Text
            //gets the values from textbox
            MailHelper.SendMailMessage(txtEmailAddress.Text, "dip5134@psu.edu",
                            null, null, txtFullName.Text, txtEnquiry.Text);
        }
    }
}